<template>
    <div>
      <div class="top">
        <router-link to='/'>
          <i class="el-icon-arrow-left icon"></i>
        </router-link>
        <div class="top-title">详情</div>
      </div>
      <div class="detail">
        <div class="detail-title">{{title}}</div>
        <div class="detail-desc">属于</div>
        <div class="detail-type">{{type}}</div>
      </div>
    </div>
</template>

<script>
export default {
  data () {
    return {
      title: '',
      type: ''
    }
  },
  mounted () {
    let value = this.$route.params.value
    this.title = this.$route.params.value.title
    this.type = this.$route.params.value.type
    console.log(value, this.title, this.type, 'type')
  }
}
</script>

<style lang="scss" scoped>
@import "../../assets/styles/global";
.top{
  display: flex;
    width: 100%;
    height: 37px;
    line-height: 37px;
    text-align: center;
    font-size: 17px;
    background: skyblue;
    .icon{
      float: left;
      overflow: hidden;
      font-size: 20px;
      color: black;
      margin-left: 10px;
    }
    .top-title{
      flex: 1;
      margin-right: 40px;
    }
}
.detail{
  height: 150px;
  width: 96%;
  text-align: center;
  margin: 50px 2%;
  padding-top: 15px;
  background: white;
  border-radius: 10px;
  .detail-title{
    height: 35px;
    line-height: 35px;
    font-size: 16px;
  }
  .detail-desc{
    height: 20px;
    line-height: 20px;
    padding-left: 5px;
    margin-top: 10px;
    background: #dee1e2;
  }
  .detail-type{
    height: 75px;
    line-height: 75px;
    font-size: 28px;
  }
}
</style>
